<?php
/**
 * 注册自定义验证器
 *
 * Author: ZeonWang
 * Date: 2017/12/1
 * Time: 18:09
 * Created by PhpStorm.
 */

namespace App\Validators;


use Illuminate\Validation\Validator;

/**
 * Class ValidatorRegister
 * @package App\Validators
 */
class ValidatorRegister
{
    /**
     * 注册自定义验证规则
     * @see AppServiceProvider::boot()
     */
    public static function register()
    {
        Validator::extend('or', OrValidator::class.'@validate');
    }
}